//
//  GolfPlayer.m
//  Golf
//
//  Created by mrbradle on 11/28/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "GolfPlayer.h"


@implementation GolfPlayer

@synthesize name,cards,score,faceDown,roundScore;

- (id)initWithName:(NSString*)name_ cards:(int)cards_ {
    
    self.name = name_;
    self.cards = (int*)malloc(sizeof(int)*cards_);
    self.faceDown = (bool*)malloc(sizeof(bool)*cards_);
    for (int i = 0; i < cards_; i++) {
        self.cards[i] = 0;
        self.faceDown[i] = NO;
    }
    return self;

}

@end
